<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib prefix="sjg" uri="/struts-jquery-grid-tags"%>
<head>

    <link rel="stylesheet" href="http://static.jquery.com/ui/css/demo-docs-theme/ui.theme.css" type="text/css" media="all" />


    <!-- This files are needed for AJAX Validation of XHTML Forms -->
    <script type="text/javascript" src="${pageContext.request.contextPath}/struts/utils.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/struts/xhtml/validation.js"></script>


    <s:if test="%{theme == 'showcase' || theme == null}">
        <sj:head debug="true" compressed="false" jquerytheme="showcase" customBasepath="themes" loadFromGoogle="%{google}" ajaxhistory="%{ajaxhistory}" defaultIndicator="myDefaultIndicator" defaultLoadingText="Please wait ..."/>
    </s:if>
    <s:else>
        <sj:head debug="true" compressed="false" jquerytheme="%{theme}" loadFromGoogle="%{google}" ajaxhistory="%{ajaxhistory}" defaultIndicator="myDefaultIndicator" defaultLoadingText="Please wait ..."/>
    </s:else>

    <!-- This file includes necessary functions/topics for validation and all topic examples -->
    <script type="text/javascript" src="js/showcase.js"></script>
    <!-- Extend the Struts2 jQuery Plugin with an richtext editor -->
    <script type="text/javascript" src="js/extendplugin.js"></script>
</head>
<body>
    <s:url id="remoteurl" action="jsontable"/>
    <sjg:grid
        id="gridtable"
        caption="Customers Examples"
        dataType="json"
        href="%{remoteurl}"
        pager="true"
        gridModel="gridModel"
        rowList="10,15,20"
        rowNum="15"
        rownumbers="true"
        resizable="true"
        resizableAnimate="true"
        resizableGhost="true"
        resizableHandles="all"
        >
        <sjg:gridColumn name="id" index="id" title="ID" width="30" formatter="integer" sortable="false"/>
        <sjg:gridColumn name="nombre" index="nombre" title="Nombre" width="250" sortable="true"/>
        <sjg:gridColumn name="apellido" index="apellido" title="Apellido" sortable="false"/>
    </sjg:grid>
</body>